package io.jpress.module.article;


import io.jpress.permission.PermissionGroupBean;
import io.jpress.permission.PermissionGroupBuilder;
import io.jpress.permission.PermissionTypes;

import java.util.ArrayList;
import java.util.List;

/**
 * 自定义权限组
 *
 * @author michael yang (fuhai999@gmail.com)
 */
public class ArticlePermissionGroups implements PermissionGroupBuilder {

    public static final String ARTICLE = "module:article";


    /**
     * 文章模块的相关权限
     */
    static List<PermissionGroupBean> articlePermissionGroups = new ArrayList<>();

    static {
        articlePermissionGroups.add(new PermissionGroupBean(ARTICLE, "文章", null, PermissionTypes.ACTION, 121));
    }


    @Override
    public List<PermissionGroupBean> buildPermissionGroups() {
        return articlePermissionGroups;
    }
}
